<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
    <link rel="stylesheet" href="static/plugins/font-awesome-4.7.0/css/font-awesome.css">
    <link rel="stylesheet" href="static/plugins/bootstrap-datepicker/css/bootstrap-datepicker.css">
</head>
<body>

<div style="margin: 20px">
    <label style="float: left;">日期：</label>
    <input type="text" id="id1" placeholder="日期" width="500px">
</div>

</body>
<script src="static/js/jquery-3.7.1.js"></script>
<script src="static/plugins/bootstrap-3.4.1/js/bootstrap.js"></script>
<script src="static/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script>
    $(function () {
        $('#id1').datepicker({
            format: 'yyyy-MM-dd',
            startDate: '0',
            language: 'zh-CN',
            autoclose: true
        });
    })

</script>
</html>